package com.atguigu.demo.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

/**
 * Created by Miracle yaochengwei on 2020/8/8 16:14
 */
@Data  //生成get set方法
public class DemoData {
   //设置excel表头名称  index一列
    @ExcelProperty(value = "学生编号",index = 0)
    private Integer sno;
    @ExcelProperty(value = "学生姓名",index = 1)
    private String sname;
}
